package com.twu.biblioteca;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;


public class MovieList extends ArrayList{

    private List<Movie> movieList = new ArrayList<>();

    public MovieList(Movie... movies) {
        this.movieList = Arrays.asList(movies);
    }

    public MovieList() {
        movieList.add(new Movie(0, "testMovie0", RecordState.AVAILABLE, 1984, "testDirector0", RecordRating.NONE));
        movieList.add(new Movie(1, "testMovie1", RecordState.AVAILABLE, 1985, "testDirector1", RecordRating.ONE));
        movieList.add(new Movie(2, "testMovie2", RecordState.CHECKED_OUT, 1986, "testDirector2", RecordRating.TWO));
    }

    public List<Movie> getMovieList() {
        return this.movieList;
    }
}
